﻿using Newtonsoft.Json;
using System.Net.Http;
using System.Text;
using System.Web.Http;

namespace SanFangWebApi.Controllers
{
    public class BaseController : ApiController
    {
        public HttpResponseMessage GetHttpResponseMessage(string json)
        {
            var reslut = new HttpResponseMessage
            {
                Content = new StringContent(json, Encoding.GetEncoding("UTF-8"), "application/json")
            };
            return reslut;
        }
    }
}
